﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() +"://"+ request.getServerName()
            +":"+request.getServerPort()+path;
%>

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="<%=basePath%>/css/pintuer.css">
<link rel="stylesheet" href="<%=basePath%>/css/admin.css">
<script src="<%=basePath%>/js/jquery-2.1.0.js"></script>
<script src="<%=basePath%>/js/pintuer.js"></script>
</head>
<body>
<form  id="listform">
  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 教师列表</strong> <a href="" style="float:right; display:none;">添加教师</a></div>
    <div class="padding border-bottom">
      <ul class="search" style="padding-left:10px;">
        <li> <a class="button border-main icon-plus-square-o" href="<%=basePath%>/tea/add"> 添加教师</a> </li>
        
        <li>
          <input id="iname"  type="text" placeholder="请输入教师名称" name="keywords" class="input" style="width:250px; line-height:17px;display:inline-block" />
          <a href="javascript:void(0)" class="button border-main icon-search" onclick="namesearch()" > 搜索</a></li>
      </ul>
    </div>
    <table id="teachertable" class="table table-hover text-center">
		<tr><th width="100" style="text-align:left; padding-left:20px;">教师编号</th><th>教师名称</th> <th>教授班级</th> <th>教授课程</th><th width="10%">教师简介</th> <th width="310">操作</th> </tr>
    <c:forEach items="${list}" var="a">

        <tr><td width="100" style="text-align:left; padding-left:20px;">${a.sno}</td><td>${a.name}</td> <td>${a.banji}</td> <td>${a.kecheng}</td><td width="10%">${a.jianjie}</td> <td width="310"><a href="<%=basePath%>/tea/del?id=${a.id}">删除</a>|<a href="<%=basePath%>/tea/edit?id=${a.id}">修改</a></td> </tr>
    </c:forEach>
    </table>
     <tr>
    	<td colspan="8">
    		<div class="pagelist"> 
    			<a id='first_page'  href="#">首页</a> 
    			<a id='last_page'   href="#">上一页</a> 
    		    <a id='next_page'   href="#">下一页</a>
    		    <a id='end_page'    href="#">尾页</a>
    		    <a id='jump_page'   href="#">跳转</a>
    		    <input id="page_no" style="height: 20px;width:30px"/>
    		    <input id="total_page"style="height: 20px;width:50px"  value="1 页"/>
    		</div>
    	</td>
    </tr>
    
  </div>
</form>
</body>
</html>